<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.lmpop.trade.ti_keyword.*" %>
<%@ page import="com.lmpop.trade.util.*"%>
<%@ page import="com.lmpop.frame.util.*"%>
<html>
	<head>
		<title>导出excel</title>
	</head>
	<body>						
		<%
			CreateExcel c_xls = new CreateExcel();
			Map ti_keyword = new Hashtable();
			Ti_keywordInfo ti_keywordInfo = new Ti_keywordInfo();
			
			String key = "";
			if(request.getParameter("key")!=null && !request.getParameter("key").equals("")){
				key = request.getParameter("key");
				ti_keyword.put("key_word",key);
			}
			String type = "";
			if(request.getParameter("type")!=null && !request.getParameter("type").equals("")){
				type = request.getParameter("type");
				ti_keyword.put("key_type",type);
			}
		
	Config cg = new Config();
			String path = cg.getString("rootpath");
			
			String iStart = "0";
			int limit = 1000;
			try{
				List list = ti_keywordInfo.getListByPage(ti_keyword,Integer.parseInt(iStart),limit);
				c_xls.CreateXls(path + "/program/admin/keyword/keyword.xls",list);
		%>
			<a href="/program/admin/keyword/keyword.xls" target="_blank"><img src="/program/admin/images/xls.gif" border="0" title="下载" />关键字统计</a>
		<%
			}catch(Exception e){
				out.println("<font color=red>导出失败!</font>");
		  }
		%>
		
	</body>
</html>